import React from 'react';
import { Router} from 'dva/router';
import {renderRoutes} from 'react-router-config';
import routes from './router.config';

function RouterConfig({ history }) {
    return (
        <Router history={history}>
            {renderRoutes(routes)}
        </Router>
    );
}

export default RouterConfig;





